package com.dd.cloud.user.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.constants.RegularConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * ip白名单
 * </p>
 *
 * @author czg
 * @since 2023-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "ip白名单")
public class IpWriteList implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true,isAutoIncrement = true)
    private Integer id;

    /**
     * 标题
     */
    @Column(length =  RegularConstants.Verify.Content_DESC, comment = "标题")
    private String ip;

    /**
     * 内容类型
     */
    @Column(comment = "限制类型")
    private Integer type;

    /**
     * 添加时间
     */
    @Column(comment = "添加时间", defaultValue = "now()")
    private LocalDateTime createDate;


    /**
     * 修改时间
     */
    @Column(comment = "修改时间", defaultValue = "now()")
    private LocalDateTime updateDate;

    /**
     * 状态
     */
    @Column(comment = "状态")
    private Integer status;

}
